package com.example.onlinemusicserver2024.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.onlinemusicserver2024.common.R;
import com.example.onlinemusicserver2024.model.domain.Singer;

public interface SingerService extends IService<Singer> {
    R allSinger(Integer sex);

    /**
     * 新增歌手
     *
     * @param singer
     * @return
     */
    R addSinger(Singer singer);

    /**
     * 更新歌手信息
     *
     * @param singer
     * @return
     */
    R updateSinger(Singer singer);

    /**
     * 删除歌手
     *
     * @param id
     * @return
     */
    R deleteSinger(int id);
}
